from stl_reader import *

def form_mesh_point(filename, point_method, nums_of_point):
    mesh=read_stl(filename)
    if point_method=="uniform_points":
        return mesh.sample_points_uniformly(number_of_points=nums_of_point)
    elif point_method=="poisson_points":
        return mesh.sample_points_poisson_disk(number_of_points=nums_of_point)
    else:
        print("you should input get the points method")
        raise TypeError

if __name__=="__main__":
    points=form_mesh_point("Master_STLs/3DR_Spool_V2_001_RTP.stl","poisson_points",1000)